package com.example.music_player_app.api.service.playList;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;

// 搜索
public interface SearchService {
    @GET("/cloudsearch")
    Call<ResponseBody> get(@Header("Cookie") String cookie, @Query("keywords") String keywords, @Query("limit") int limit);

    @POST("/cloudsearch")
    Call<ResponseBody> post(@Header("Cookie") String cookie, @Query("keywords") String keywords, @Query("limit") int limit);
}
